package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.ProjectDTO;
import com.fastjrun.eladmin.itrms.dto.ProjectSystemDTO;
import com.fastjrun.eladmin.itrms.entity.RmsProject;
import com.fastjrun.eladmin.itrms.entity.RmsProjectSystem;
import com.fastjrun.eladmin.itrms.vo.ProjectSystemVO;
import com.fastjrun.eladmin.itrms.vo.ProjectVO;
import org.mapstruct.DecoratedWith;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
@DecoratedWith(RmsProjectSystemMapperDecorator.class)
public interface RmsProjectSystemMapper {

    RmsProjectSystemMapper INSTANCE = Mappers.getMapper(RmsProjectSystemMapper.class);

    ProjectSystemVO toVO(RmsProjectSystem entity);

    List <ProjectSystemVO> toVO(List<RmsProjectSystem> entityList);

    RmsProjectSystem toEntity(ProjectSystemDTO dto);

}
